package com.example.mygame;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.mygame.my2048.My2048Activity;
import com.example.mygame.myfive.MyFiveActivity;
import com.example.mygame.mystick.MyStickActivity;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.game_2048:
			startActivity(new Intent(this, My2048Activity.class));
			break;
			
		case R.id.game_five:
			startActivity(new Intent(this, MyFiveActivity.class));
			break;
			
		case R.id.game_stick:
			startActivity(new Intent(this, MyStickActivity.class));
			break;
		default:
			break;
		}
	}

}
